#include <iostream>
using namespace std; 

class Rational {

	friend ostream &operator<<(ostream &output, Rational &Robj);
	friend istream &operator>>(istream &input, Rational &Robj);

    public:
       Rational( int = 1, int = 1 ); // default constructor
       bool operator!=(int);
	   Rational operator+(Rational Robj);
	   Rational operator-(Rational Robj);
	   Rational operator*(Rational Robj);
	   Rational operator/(Rational Robj);
	   bool operator>(Rational Robj);
	   bool operator<(Rational Robj);
	   
	  



    private:
       int numer;
       int denom;
       void reduction();
};


